package com.pxx.item.service;

import com.pxx.common.utils.R;
import com.pxx.item.pojo.TbCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Yoo19
* @description 针对表【tb_category(商品类目表，类目和商品(spu)是一对多关系，类目与品牌是多对多关系)】的数据库操作Service
* @createDate 2025-06-23 14:07:57
*/
public interface TbCategoryService extends IService<TbCategory> {

    List<TbCategory> querryCategoryListByPrentId(Long pid);

    R saveCategory(TbCategory tbCategory);

    R updateCategory(Long id, String name);

    R delete(Long id);

    List<TbCategory> queryCategoryListByBrandId(Long bid);

    List<String> queryNamesByIds(List<Long> list);
}
